home *** CD-ROM | disk | FTP | other *** search
- '\"
- '\" Copyright (c) 1993 The Regents of the University of California.
- '\" Copyright (c) 1994 Sun Microsystems, Inc.
- '\"
- '\" See the file "license.terms" for information on usage and redistribution
- '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
- '\"
- '\" @(#) incr.n 1.2 94/12/17 16:18:10
- '\"
- .so man.macros
- .HS incr tcl
- .BS
- '\" Note: do not modify the .SH NAME line immediately below!
- .SH NAME
- incr \- Increment the value of a variable
- .SH SYNOPSIS
- \fBincr \fIvarName \fR?\fIincrement\fR?
- .BE
-
- .SH DESCRIPTION
- .PP
- Increments the value stored in the variable whose name is \fIvarName\fR.
- The value of the variable must be an integer.
- If \fIincrement\fR is supplied then its value (which must be an
- integer) is added to the value of variable \fIvarName\fR; otherwise
- 1 is added to \fIvarName\fR.
- The new value is stored as a decimal string in variable \fIvarName\fR
- and also returned as result.
-
- .SH KEYWORDS
- add, increment, variable, value
-